﻿#ifndef COMPONENTLIST_H
#define COMPONENTLIST_H

#include <QWidget>
#include <QListWidgetItem>

namespace Ui {
class CompenentList;
}

typedef void* (*GetNewComponentFunc)();
typedef const char* (*GetComponentNameFunc)();
typedef const char* (*GetComponentDescriptionFunc)();

class CompenentList : public QWidget
{
    Q_OBJECT

public:
    explicit CompenentList(QWidget *parent = nullptr);
    ~CompenentList();
    void ScanTaiJiPlugins(QString pluginsdir);
private slots:
    void on_listWidget_itemClicked(QListWidgetItem *item);

private:
    Ui::CompenentList *ui;
    QMap<QString,QString> m_desMap;
};

#endif // COMPONENTLIST_H
